package P1400;

import java.util.Scanner;

/**
 * @author: zhouyang
 * @descrpition:
 * @time: 2019-09-29 19:12
 */
public class P1421_小玉买文具 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int now = 0;
        now += scanner.nextInt()*10;
        now += scanner.nextInt();
        scanner.close();
        System.out.println(now/19);
    }
}
